package cn.kgc.gl.controller;

/**
 * @author:
 * @date: 2022/1/2
 * @description:
 */


import cn.kgc.gl.pojo.Detail;
import cn.kgc.gl.service.DetailService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;


@RequestMapping("/detail")
@Controller
public class DetailController {

    @Resource
    private DetailService detailService;

    @RequestMapping("/seldetail")
    public String list(Model model) {
        List<Detail> list = detailService.selDetails();
        model.addAttribute("list", list);
        return "selBBS";
    }
}